﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ZOVNP.Model.Abstracts;

namespace ZOVNP.WinView
{
    class CustomerNode : TreeNode
    {
        private ICustomer _customer;
        public CustomerNode(ICustomer customer)
        {
            Customer = customer;
        }

        public ICustomer Customer
        {
            get { return _customer; }
            private set
            {
                _customer = value;
                Text = _customer != null ? _customer.ToString() : string.Empty;
            }
        }
    }
}
